//
//  HomeTableView.m
//  ZhiHuDaily
//
//  Created by albert on 2018/1/8.
//  Copyright © 2018年 albert. All rights reserved.
//

#import "HomeTableView.h"

@implementation HomeTableView

/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/

- (void)layoutSubviews{
    [super layoutSubviews];
    
    if (self.contentOffset.y > JKScreenH) {
        return;
    }
    
//    [self insertSubview:self.mainHeaderView atIndex:0];
    [self sendSubviewToBack:self.mainHeaderView];
    
//    if (self.mainHeaderView) {
//
//        [self insertSubview:self.mainHeaderView atIndex:0];
//        [self sendSubviewToBack:self.mainHeaderView];
//
//    }else{
//
//        [self sendSubviewToBack:self.mainHeaderViewCell];
//    }
    
}
@end
